Optimal. Leaf size=43 \[ \frac {i (a-i a \tan (c+d x))^4}{8 d \left (a^3+i a^3 \tan (c+d x)\right )^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 37}
\begin {gather*} \frac {i (a-i a \tan (c+d x))^4}{8 d \left (a^3+i a^3 \tan (c+d x)\right )^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 3568
Rubi steps
\begin {align*} \int \frac {\sec ^8(c+d x)}{(a+i a \tan (c+d x))^8} \, dx &=-\frac {i \text {Subst}\left (\int \frac {(a-x)^3}{(a+x)^5} \, dx,x,i a \tan (c+d x)\right )}{a^7 d}\\ &=\frac {i (a-i a \tan (c+d x))^4}{8 d \left (a^3+i a^3 \tan (c+d x)\right )^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 32, normalized size = 0.74 \begin {gather*} \frac {i \sec ^8(c+d x)}{8 d (a+i a \tan (c+d x))^8} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.34, size = 63, normalized size = 1.47
method | result | size |
risch | \(\frac {i {\mathrm e}^{-8 i \left (d x +c \right )}}{8 a^{8} d}\) | \(19\) |
derivativedivides | \(\frac {\frac {4}{\left (\tan \left (d x +c \right )-i\right )^{3}}-\frac {1}{\tan \left (d x +c \right )-i}+\frac {2 i}{\left (\tan \left (d x +c \right )-i\right )^{4}}-\frac {3 i}{\left (\tan \left (d x +c \right )-i\right )^{2}}}{d \,a^{8}}\) | \(63\) |
default | \(\frac {\frac {4}{\left (\tan \left (d x +c \right )-i\right )^{3}}-\frac {1}{\tan \left (d x +c \right )-i}+\frac {2 i}{\left (\tan \left (d x +c \right )-i\right )^{4}}-\frac {3 i}{\left (\tan \left (d x +c \right )-i\right )^{2}}}{d \,a^{8}}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 158 vs. \(2 (35) = 70\).
time = 0.31, size = 158, normalized size = 3.67 \begin {gather*} -\frac {\tan \left (d x + c\right )^{6} - 3 i \, \tan \left (d x + c\right )^{5} - 4 \, \tan \left (d x + c\right )^{4} + 4 i \, \tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )^{2} - i \, \tan \left (d x + c\right )}{{\left (a^{8} \tan \left (d x + c\right )^{7} - 7 i \, a^{8} \tan \left (d x + c\right )^{6} - 21 \, a^{8} \tan \left (d x + c\right )^{5} + 35 i \, a^{8} \tan \left (d x + c\right )^{4} + 35 \, a^{8} \tan \left (d x + c\right )^{3} - 21 i \, a^{8} \tan \left (d x + c\right )^{2} - 7 \, a^{8} \tan \left (d x + c\right ) + i \, a^{8}\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 17, normalized size = 0.40 \begin {gather*} \frac {i \, e^{\left (-8 i \, d x - 8 i \, c\right )}}{8 \, a^{8} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 160 vs. \(2 (34) = 68\).
time = 10.73, size = 160, normalized size = 3.72 \begin {gather*} \begin {cases} \frac {i \sec ^{8}{\left (c + d x \right )}}{8 a^{8} d \tan ^{8}{\left (c + d x \right )} - 64 i a^{8} d \tan ^{7}{\left (c + d x \right )} - 224 a^{8} d \tan ^{6}{\left (c + d x \right )} + 448 i a^{8} d \tan ^{5}{\left (c + d x \right )} + 560 a^{8} d \tan ^{4}{\left (c + d x \right )} - 448 i a^{8} d \tan ^{3}{\left (c + d x \right )} - 224 a^{8} d \tan ^{2}{\left (c + d x \right )} + 64 i a^{8} d \tan {\left (c + d x \right )} + 8 a^{8} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{8}{\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{8}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.62, size = 70, normalized size = 1.63 \begin {gather*} -\frac {2 \, {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 7 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 7 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{8} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{8}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.51, size = 73, normalized size = 1.70 \begin {gather*} -\frac {\mathrm {tan}\left (c+d\,x\right )\,\left ({\mathrm {tan}\left (c+d\,x\right )}^2\,1{}\mathrm {i}-\mathrm {i}\right )}{a^8\,d\,\left ({\mathrm {tan}\left (c+d\,x\right )}^4\,1{}\mathrm {i}+4\,{\mathrm {tan}\left (c+d\,x\right )}^3-{\mathrm {tan}\left (c+d\,x\right )}^2\,6{}\mathrm {i}-4\,\mathrm {tan}\left (c+d\,x\right )+1{}\mathrm {i}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________